package com.service;/**
 * @program: SmbmsDemo
 * @description: 供应商接口
 * @author: Mr.Kang
 * @create: 2020-06-01 12:02
 **/

import com.pojo.Provider;
import org.apache.ibatis.annotations.Param;

import java.sql.Connection;
import java.util.List;

/**
 * @Description:
 * @author 康康真滴暖
 * @date 2020-06-01 12:02
 */

public interface ProviderService {

    /**
     * 增加供应商
     */
    public int add(Provider provider)throws Exception;

    /**
     * 通过供应商名称、编码获取供应商列表-模糊查询-providerList
     */
    public List<Provider> getProviderList(String proName,String proCode)throws Exception;

    /**
     * 通过proId删除Provider
     */
    public int deleteProviderById(@Param("delId") String delId)throws Exception;


    /**
     * 通过proId获取Provider
     */
    public Provider getProviderById(@Param("id") String id)throws Exception;

    /**
     * 修改用户信息
     */
    public int modify(Provider provider)throws Exception;

}
